<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

      <div class='myMenu'>
          <ul>
              <li>菜单1</li>
              <li>菜单2</li>
              <li>菜单3</li>
              <li>菜单4</li>
          </ul>

      </div>
    
</body>
</html>
<script>
//触发菜单事件
document.oncontextmenu=()=>{
    console.log('1111');

    return false;




}


</script>
